package com.ruoyi.store.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.store.domain.InventoryType;
import com.ruoyi.store.service.InventoryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/stockType")
public class InventoryTypeController {

    @Resource
    private InventoryTypeService inventoryTypeService;

    @RequiresPermissions("store:stockType:list")
    @RequestMapping("getOutType")
    public AjaxResult getOutType(){
        return AjaxResult.success(inventoryTypeService.getOutType());
    }
}
